'''
算术运算符
        1、加减乘除：+、-、*、/
        2、取模：%
        3、幂（乘方）：**
        4、整除：//（返回两个数商的整数部分，向下取整。若有一方为负数，它的值即为负数，p28）
'''
num_01 = 9.9
num_02 = 7.5
# print(num_02 + num_01)
# print(num_01 - num_02)
# print(num_02 * num_01)
# print(num_01 / num_02)

num_03 = 5
num_04 = 9
# print(num_04 % num_03)
# print(num_04 // num_03)
#
# print(4 ** 3)  # 4*4*4 = 64

"""
赋值运算符
"""
num_05 = 2
num_06 = 3
# num_05 += num_06
# print(num_05) # 5
res_01 = num_06 + num_05  # 5
num_05 = num_06 + num_05
# print(num_05)  # 5
# num_05 += num_06
# print(num_05) # 8


"""
关系运算符
"""
a = 9.8
b = "abc123"
print(a == b)
print(a != b)
# print(a > b)  不能在关系运算符两侧用不一致的数据类型进行>、<、>=、<=比较，会报错，报类型错误
